﻿function Remove-TSMNodeGroupMember {
    <#
        .SYNOPSIS
            Remove TSM node to node group
                    
        .DESCRIPTION
            The Remove-TSMNodeGroupMember removes a TSM node from a node group
        
        .EXAMPLE
            Remove-TSMNodeGroupMember groupname nodeA

        .NOTES
            Contributors:  David Seibel
            Last Revision Date: 09/03/2015
    #>
    [CmdletBinding()]
    Param(
        [Parameter(Position = 0, Mandatory = $true)]
        $NodeGroup,

        [Parameter(Position = 1, Mandatory = $true)]
        $Node
    )

    $command = "Delete NodeGroupMember $NodeGroup $Node"

    $output = Invoke-TSMCommand -Command $command
    return $output
}